package com.ctgu.tengyun.domain;

import com.ctgu.tengyun.bean.FileBean;

import java.io.Serializable;
import java.util.Date;

public class FaultSolution implements Serializable {

    public static final Composer<String, FaultSolution> REF_ID_COMPOSER = FaultSolution::getRefId;

    /**
     * 主键id
     */
    private Long id;

    /**
     * 业务id
     */
    private String refId;

    /**
     * 业务类型，1-产品
     */
    private Integer refType;

    /**
     * 故障类型
     */
    private String troubleType;

    /**
     * 故障现象
     */
    private String troubleInfo;

    /**
     * 故障原因
     */
    private String troubleReason;

    /**
     * 解决方案
     */
    private String solution;

    /**
     * 参考视频
     */
    private FileBean videoFile;

    /**
     * 版本号
     */
    private Integer version;

    /**
     * 是否有效,0-无效，1-有效
     */
    private Integer isValid;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 最后更新时间
     */
    private Date lastModifyTime;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getRefId() {
        return refId;
    }

    public void setRefId(String refId) {
        this.refId = refId;
    }

    public Integer getRefType() {
        return refType;
    }

    public void setRefType(Integer refType) {
        this.refType = refType;
    }

    public String getTroubleType() {
        return troubleType;
    }

    public void setTroubleType(String troubleType) {
        this.troubleType = troubleType;
    }

    public String getTroubleInfo() {
        return troubleInfo;
    }

    public void setTroubleInfo(String troubleInfo) {
        this.troubleInfo = troubleInfo;
    }

    public String getTroubleReason() {
        return troubleReason;
    }

    public void setTroubleReason(String troubleReason) {
        this.troubleReason = troubleReason;
    }

    public String getSolution() {
        return solution;
    }

    public void setSolution(String solution) {
        this.solution = solution;
    }

    public FileBean getVideoFile() {
        return videoFile;
    }

    public void setVideoFile(FileBean videoFile) {
        this.videoFile = videoFile;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public Integer getIsValid() {
        return isValid;
    }

    public void setIsValid(Integer isValid) {
        this.isValid = isValid;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getLastModifyTime() {
        return lastModifyTime;
    }

    public void setLastModifyTime(Date lastModifyTime) {
        this.lastModifyTime = lastModifyTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", refId=").append(refId);
        sb.append(", refType=").append(refType);
        sb.append(", troubleType=").append(troubleType);
        sb.append(", troubleInfo=").append(troubleInfo);
        sb.append(", troubleReason=").append(troubleReason);
        sb.append(", solution=").append(solution);
        sb.append(", videoFile=").append(videoFile);
        sb.append(", version=").append(version);
        sb.append(", isValid=").append(isValid);
        sb.append(", createTime=").append(createTime);
        sb.append(", lastModifyTime=").append(lastModifyTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}